package com.xzc.spring5.aopanno;

import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @author 徐州城
 * @version 1.0
 */

@Component
@Aspect
@Order(1)
public class PersonProxy {
    // 后置通知（返回通知）
    @Before(value = "execution(* com.xzc.spring5.aopanno.User.add(..))")
    public void afterReturning(){
        System.out.println("PersonProxy Before");
    }
}
